package com.spring.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ValidatorBean {

    @NotNull(message = "名字不能为空")
    private String name;

    @NotNull(message = "邮箱不能为空")
    @Email
    private String email;

    @NotNull(message = "手机号不能为空")
    private String phone;
}
